package cn.edu.scau.cmi.lixiaoyuan.composite.consistent;

import java.util.HashSet;
import java.util.Set;

public abstract class ConsistentOrganization {
      
	String name;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	 public int kongge=0;
		
		public int getKongge() {
			return kongge;
		}

		public void setKongge(int kongge) {
			this.kongge = kongge;
		}
	
	ConsistentOrganization parent = null;
	
	public Set<ConsistentOrganization> children = new HashSet<ConsistentOrganization>();
      
	public abstract void doSomething();
	
	public abstract ConsistentOrganization addChild(ConsistentOrganization child);
	abstract ConsistentOrganization deleteChild(ConsistentOrganization child);
	abstract Set<ConsistentOrganization> getChildren();
}
